#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QSplitter>
#include <QListWidget>
#include <QLabel>

#include "painterwidget.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public:
    void addItem(const QString &str);

public slots:
    QString execRecognition(const QString &path);

private:
    QSplitter *m_spliter;
    QListWidget *m_list;
    PainterWidget *m_painter;
};

class ItemWidget : public QWidget
{
    Q_OBJECT
public:
    explicit ItemWidget(QWidget *parent = nullptr);
    ~ItemWidget();

    void setData(const QString &str);

private:
    QLabel *m_label;
};

#endif // MAINWINDOW_H
